package com.ych.abstractFactory;

public class Main {

	public static void main(String[] args) {
		IAnimalFactory factory = new AnimalFactory();
		ICat cat = factory.createCat();
		IDog dog = factory.createDog();
		cat.eat();
		dog.eat();
	}
}
